﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _3._3._6_构造函数
{
    //从构造函数中调用其他构造函数
    class Car
    {
        private string _description;
        private uint _uWheels;

        public Car(string description, uint uWheels)
        {
            _description = description;
            _uWheels = uWheels;
        }
        //public Car(string description)
        //{
        //    _description = description;
        //    _uWheels = 4;
        //}

        //构造函数初始化器
        public Car(string description):this(description,4) { }
    }
}
